// 保存token
const saveToken = tokenObj => {
  localStorage.setItem('myToken', JSON.stringify(tokenObj))
}
// 获取token
const getToken = () => {
  return JSON.parse(localStorage.getItem('myToken'))
}
// 删除token
const removeToken = () => {
  localStorage.removeItem('myToken')
}

export { saveToken, getToken, removeToken }
